/**
* 作者: chenlingzhi
* 日期: 2025-03-03 20:41:59
* 备注: 用户黑名单
*/
package com.motu.monstercity.server.game.userdata;

import com.motu.monstercity.protocol.Common;
import com.motu.monstercity.server.game.logic.BuddyManager;
import com.motu.vertx.module.utility.toolset.TimeUtils;

public class UserBuddyBlack extends UserBuddyBlackModel {
	public UserBuddyBlack() {
		super();
	}


	public UserBuddyBlack(long userId, long buddyId) {
		putUserId(userId);
		putBlackId(buddyId);
		putBlackTime(TimeUtils.getCurTime());
	}

	public Common.PBUserBuddy.Builder takeInitBuilder() {
		return takeBuilder();
	}

	public Common.PBUserBuddy.Builder takeBuilder() {
		Common.PBUserBuddy.Builder sb = Common.PBUserBuddy.newBuilder();
		sb.setBlackTime(blackTime);
		return BuddyManager.takeBuddyBuilder(sb,0,blackId);
	}
}
